package com.hx.product.domain;

import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品图片（详情）对象 pro_images
 * 
 * @author Chicken Brother
 * @date 2023-05-18
 */
public class Images extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图片详情ID */
    private Long id;

    /** 图片关联商品ID */
    @Excel(name = "图片关联商品ID")
    private Long goodsId;

    /** type(0：广告图，1：详情图) */
    @Excel(name = "type(0：广告图，1：详情图)")
    private Integer type;

    /** 图片的地址 */
    @Excel(name = "图片的地址")
    private String img;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("type", getType())
            .append("img", getImg())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .toString();
    }
}
